package com.hu.video.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.ui.Model;
import javax.servlet.http.HttpSession;

@Controller
public class PageController {
    @GetMapping("/privacy_settings")
    public String privacySettings() {
        return "privacy_settings";
    }
    
    @GetMapping("/block_manage")
    public String blockManage(HttpSession session, Model model) {
        // 确保用户已登录
        if (session.getAttribute("user") == null) {
            return "redirect:/user/toLogin";
        }
        return "block_manage";
    }
} 